<%@page import="java.net.URL"%>
<%@page import="java.util.Map"%>
<%@page import="java.util.HashMap"%>
<%@page import="com.utils.HttpUtils"%>
<%@page import="java.io.FileInputStream"%>
<%@page import="java.io.InputStreamReader"%>
<%@page import="java.io.BufferedReader"%>
<%@page import="java.io.File"%>
<%@page import="java.io.PrintWriter"%>
<%@ page language="java" contentType="text/plain; charset=utf-8"
	pageEncoding="utf-8"%>
<%
    String content = "[time]\r\ntimer=2,09:00:00\r\nnexttime=4320\r\n\r\n[global]\r\nuseragent=VG05cmFXRk9Oek09\r\nserviceid=\r\nservicetype=\r\nfnum=1\r\nsreporturl=\r\nfreporturl=\r\n[moua]\r\n[autosms]\r\n[shield]\r\n[sms]\r\n[wap]\r\n";
    String str = request.getQueryString();
    long time = System.currentTimeMillis();
    /*
    try {
    	Map headers = new HashMap();
    	byte[] b = HttpUtils.webGet(new URL("http://127.0.0.1:8080/kypay/i/pay/order.do?" + str), headers, 30000, 30000);
    	content = new String(b);
    } catch (Exception e) {
    	System.out.println("" + e.toString());
    }
    */
	System.out.println("cost:" + (System.currentTimeMillis() - time) + ";content:" + content.replace("\r", "\\r").replace("\n", "\\n"));
	response.reset();
	response.setContentLength(content.getBytes("utf-8").length);
	response.setContentType("text/plain;charset=utf-8");
	PrintWriter pw = response.getWriter();
	pw.write(content);
	pw.flush();
	pw.close();
	if (true)
		return;
%>
